<?php

namespace app\api\validate\cms;

use app\common\model\article\Article;
use tmcore\base\BaseValidate;

/**
 * 文章验证器
 */
class ArticleValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
    ];

    protected $message = [
        'id.require' => '文章id不能为空',
    ];

    /**
     * 详情场景
     * @return ArticleValidate
     */
    public function sceneDetail()
    {
        return $this->only(['id']);
    }
}